<?php declare(strict_types=1);


namespace App\Aspect;

use Swoft\Aop\Annotation\Mapping\After;
use Swoft\Aop\Annotation\Mapping\Aspect;
use Swoft\Aop\Annotation\Mapping\Before;
use Swoft\Aop\Annotation\Mapping\PointBean;
use Swoft\Aop\Point\JoinPoint;
use Swoft\Db\DB;

/**
 * Class InitSiteAspect
 *
 * @since 2.0
 * @Aspect(order=1)
 *
 * @PointBean(include={"App\Http\Controller\HomeController"})
 */
class InitSiteAspect
{
    /**
     * @Before()
     */
    public function before()
    {
        $site_info = DB::table('config')->where('group', 'site')->pluck('value', 'name');

    }
}
